Creating an iModel when you are not provisioning the iModel
If you are not
provisioning using OpenPlant Project Administrator, you will need to manually
create your own project and iModel before running the bridge as these are
automatically done when using OpenPlant Project Administrator. iModel creation
can be completed using Postman which can be downloaded from here:
- Run postman and login if required. Click New.
- Then Collection.
- Call it iTwinStack.
- Then click on … and select Add Request.
- Give it a name like "Create iModel", and then click Save to iTwinStack.
- Expand the iTwin Stack node, And then click on the Create iModel entry.
- Change to POST from GET and paste in the following:
- The Blue text needs to be updated with a new GUID. You can generate a GUID by running Windows PowerShell and then enter New-Guid.
- Switch Authorization to BasicAuth.
- In this case, the user is "demo" for the username and "mydemo" is used for the password.
- Switch to the body and then select raw and JSON as indicated below:
-
http://localhost:4000/sv1.1/Repositories/Context--c819c39c-c336-4310-b5f0-e3a189da8038/ContextScope/iModel
Replace the bold text above with the GUID you created previously.
Set the following in the body:
{ "instance": { "schemaName": "ContextScope", "className": "iModel", "properties": { "Name": "Test.001", "iModelTemplate": "Empty" } } }
- You can change the name from TestiModel to something else. Press Send, and you will get the following output.